﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using CommonGameClasses;

namespace BattleLogic
{
	public class Missile : LogicObject, IMissile
	{

		string IWorldObject.Name { get; set; }
		double IWorldObject.PositionX { get; set; }
		double IWorldObject.PositionY { get; set; }
		double IWorldObject.Radius { get { return 8.0f; } }
		double IWorldObject.Rotation { get; set; }
		TypeWorldObjects IWorldObject.TypeWorldObject { get { return TypeWorldObjects.Missile; } }

		short IProjectile.Power { get { return 10; } }
		public double MoveSpeed { get { return 0.09; } }

		public Missile()
		{
			this.Name = "Missile";
		}

		public override void Update(double deltaTime)
		{
			this.PositionX += this.MoveSpeed * deltaTime * Math.Cos(this.Rotation);
			this.PositionY += this.MoveSpeed * deltaTime * Math.Sin(this.Rotation);
		}


		
	}
}
